home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_01_02
/
1n02055a
< prev
next >
Wrap
Text File
|
1990-07-08
|
266b
|
16 lines
/*
** Listing 2 - Convert Unix-style pathnames to DOS-style
*/
#include <stddef.h>
#include <string.h>
char *unix2dos(char *path)
{
char *p;
while (NULL != (p = strchr(path, '/')))
*p = '\\';
return path;
}